package xyz.zdsoft.ask_for_leave_manage_module.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import xyz.zdsoft.ask_for_leave_manage_module.bo.AdminStudentLeaveRecordsBo;
import xyz.zdsoft.ask_for_leave_manage_module.vo.AdminStudentLeaveRecordsVo;
import xyz.zdsoft.ask_for_leave_manage_module.vo.AdminStudentLeavesDetailsVo;

import java.util.List;

/**
 * 管理员-请假记录接口
 * @author 以风
 */
public interface AdminLeavesMapper {

    /**
     * 获取学生请假记录分页信息列表（查询、分页、重置）
     * @param page 分页参数
     * @param adminStudentLeaveRecordsBo 学生请假记录入参
     * @return 学生请假记录分页信息列表
     */
    IPage<AdminStudentLeaveRecordsVo> getStudentLeaveRecordsPage(IPage<AdminStudentLeaveRecordsVo> page, AdminStudentLeaveRecordsBo adminStudentLeaveRecordsBo);

    /**
     * 获取学生请假详情
     * @param leaveId 请假id
     * @return 请假详情
     */
    List<AdminStudentLeavesDetailsVo> getStudentLeaveDetails(Integer leaveId);
}
